<template>
<h2>条件渲染</h2>

<span v-if="num=1">你好，你说的对</span>

<h1 v-if="name='zhangsan'">my name is zhangsan</h1>

<div v-if="type==='A'">
    A
</div>

</template>




<script setup lang="ts">

const num=1;
const name="zhangsan"

</script>